<?php
// +----------------------------------------------------------------------
// | Description: 1
// +----------------------------------------------------------------------
// | Author: orchief
// +----------------------------------------------------------------------
// | Date: 2018-01-24 16:43:34
// +----------------------------------------------------------------------

namespace app\client\model;

use app\common\model\CommonClient;

class ProductAttr extends CommonClient
{
    protected $fuzzyConditions = null;
    protected $clearConditions = ['ProductId', 'IsSku'];
    protected $returnFields = '
        shop_goods_product_attributes.Id,
        shop_goods_product_attributes.IsDelete,
        shop_goods_product_attributes.ProductId,
        shop_goods_product_attributes.AttributeId,
        shop_goods_product_attributes.ValueId,
        shop_goods_product_attributes.IsSku,
        shop_goods_attribute_values.IsImg,
        shop_goods_attributes.AttributeName,
        shop_goods_product_attributes.IsSku,
        shop_goods_attributes.SortBy,
        shop_goods_attribute_values.ValueStr
    ';
    protected $rangeConditions = null;
    protected $union_fuzzyConditions = null;
    protected $foreignConditions = [
        'shop_goods_attribute_values'   => ['Id', 'ValueId'],
        'shop_goods_attributes'         => ['Id', 'AttributeId']
    ];
    protected $name = 'shop_goods_product_attributes';
}